home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFUNCS / RCGTOV.C < prev    next >
C/C++ Source or Header  |  1992-11-05  |  485b  |  18 lines

  1. /**************************************************************************
  2.  * RCGTOV.C - Convert GRECT to VRECT.
  3.  *************************************************************************/
  4.  
  5. #include "gemfintl.h"
  6.  
  7. VRECT *rc_gtov(pgrect, pvrect)
  8.     register GRECT *pgrect;
  9.     register VRECT *pvrect;
  10. {
  11.     pvrect->v_x1 = pgrect->g_x;
  12.     pvrect->v_y1 = pgrect->g_y;
  13.     pvrect->v_x2 = pgrect->g_x + pgrect->g_w - 1;
  14.     pvrect->v_y2 = pgrect->g_y + pgrect->g_h - 1;
  15.     return pvrect;
  16. }
  17.  
  18.